#ifndef AUDIO_H
#define AUDIO_H

#include <QObject>
#include <QDebug>
#include <QAudioFormat>
#include <QAudioDeviceInfo>
#include <QAudioInput>
#include <QFile>

class Audio : public QObject
{
    Q_OBJECT
public:
    explicit Audio(QObject *parent = nullptr);

    void startAudio(QString filename);//开始录音
    void stopAudio();//结束录音
signals:
private:
    QAudioInput *m_audio;//录音对象
    QFile *m_file;//存放文件

public slots:
};

#endif // AUDIO_H
